---
title: 'Connecting to Postgres using DBeaver'
sidebarTitle: 'DBeaver'
---

This guide will walk you through the steps to connect to Nile using PSQL.

1. Create a Nile's Postgres database through the UI or use one of your existing databases to follow along.

![DBWeaver-1](/images/psql-1.png)

2. Once you are inside a specific database, click on the settings tab on the left and navigate to the connections screen

![DBWeaver-2](/images/psql-2.png)

3. Click on the Postgres icon to get the connection string

![DBWeaver-3](/images/psql-3.png)

4. Click "Generate credentials". Use this if you really want to simplify the access. If not, you can replace the username and password manually and use that through commandline.

![DBWeaver-4](/images/dbweaver-4.png)

5. There are four parts of this url that is needed to connect to DBWeaver

```sql
psql postgres://018bd797-ed9d-7c02-bec4-dac1179c29fd:d68af75e-47cb-4354-ada4-98abe7d8015c@db.thenile.dev:5432/diplomatic_axe

host:db.thenile.dev
database:diplomatic_axe
username:018bd797-ed9d-7c02-bec4-dac1179c29fd
password:d68af75e-47cb-4354-ada4-98abe7d8015c
```

6. Navigate to DBWeaver. Select to connect to a new database

![DBWeaver-5](/images/dbweaver-5.png)

7. Pick Postgres as the choice of database

![DBWeaver-6](/images/dbweaver-6.png)

8. Enter the host, database, username and password from step 5

![DBWeaver-7](/images/dbweaver-7.png)

9. Press OK and DBWeaver should automatically connect to Nile's Postgres

![DBWeaver-8](/images/dbweaver-8.png)

10. Enjoy exploring Nile with DBWeaver
